package test;

import java.io.File;
import java.io.IOException;
import java.util.Scanner;

public class test03 {
    public static void main(String[] args) throws IOException {
        Scanner scanner =new Scanner(System.in);
        System.out.println("请输入目录名称");
        String address =scanner.nextLine().trim();

        File dir =new File("./"+address);//就只是文件名或目录
        if(!dir.exists()){
            dir.mkdirs();
            System.out.println("目录已创建");
        }

    }
}
